﻿
namespace Just4Devs.Vsirc.Addin.UI
{
	public class VsircTab : System.Windows.Forms.TabPage, IVsircTab
	{
		#region IVsircTab Members

		public int UnreadMessages
		{
			get
			{
				return unreadMessages;
			}
			set
			{
				unreadMessages = value;
				if (unreadMessages.Equals(0))
					this.Text = this.Name;
				else
					this.UIThreadInvoke(() => this.Text = string.Concat(this.Name, "(", this.UnreadMessages, ")"));
			}
		}

		public virtual void HandleMessage(ScreenMessage message)
		{

		}

		#endregion

		private int unreadMessages;
	}
}
